package com.tts.superstar;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.tts.superstar.View.BaseActivity;

public class SpaceActivity extends BaseActivity {

    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_space);
         button = findViewById(R.id.gg);
         button.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 finish();
             }
         });
//设置button的单击事件
            findViewById(R.id.pp).setOnClickListener(new View.OnClickListener() {
                public void onClick(View arg0) {
//弹出提示框
                    Toast.makeText(getApplicationContext(),"清理完成",Toast.LENGTH_SHORT).show();
                }
            });
    }
}
